﻿<%@ Page Language="C#" MasterPageFile="MasterPage.master" AutoEventWireup="true" CodeFile="NewsAdd.aspx.cs" ValidateRequest="false" Inherits="public_html_NewSite_CMSV2_NewsAdd" Title="Tilføj Nyhed" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h3>Tilføj Nyhed</h3>
    <cc1:TabContainer ID="TabContainer1" runat="server" TabIndex="0" Width="600" 
        ActiveTabIndex="0">
        <cc1:TabPanel ID="TabTekst" runat="server" HeaderText="Tekst">
            <ContentTemplate>
                <table width="100%" border="0" cellspacing="5">
                    <tr>
                        <td>Titel</td>
                        <td>
                            <asp:TextBox ID="TxtTitel" runat="server" Width="300px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>Emne</td>
                        <td>
                            <asp:DropDownList ID="DropEmne" runat="server">
                                <asp:ListItem Text="Nyhed" Value="Nyhed"></asp:ListItem>
                                <asp:ListItem Text="Pressemeddelelse" Value="Pressemeddelelse"></asp:ListItem>
                                <asp:ListItem Text="Screenshots" Value="Screenshots"></asp:ListItem>
                                <asp:ListItem Text="Update" Value="Update"></asp:ListItem>
                                <asp:ListItem Text="Ny Udgivelse" Value="Ny Udgivelse"></asp:ListItem>
                                <asp:ListItem Text="Rygte" Value="Rygte"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>                    
                    <tr>
                        <td valign="top">Brødtekst (255 tegn)</td>
                        <td>
                            <asp:TextBox ID="TxtHeader" TextMode="MultiLine" runat="server" Height="78px" Width="400px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">Tekst</td>
                        <td>
                            <asp:TextBox ID="TxtTekst" TextMode="MultiLine" runat="server" Height="268px" Width="400px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>Kilde</td>
                        <td>
                            <asp:TextBox ID="TxtKilde" runat="server" Width="300px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>Nyheds-ID</td>
                        <td>
                            <asp:TextBox ID="TxtID" ReadOnly="True" runat="server" Width="300px"></asp:TextBox>
                        </td>
                    </tr>                    
                    <tr>
                        <td></td>
                        <td>
                            <asp:Button ID="BtmSave" runat="server" Text="Gem Nyhed" Width="300px" 
                                onclick="BtmSave_Click" />
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </cc1:TabPanel>
        <cc1:TabPanel ID="TabRelationer" runat="server" HeaderText="Relationer">
            <ContentTemplate>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="Add" EventName="Click" />
                    <asp:AsyncPostBackTrigger ControlID="Remove" EventName="Click" />
                </Triggers>
                <ContentTemplate>
                <asp:Label ID="Hej" runat="server"></asp:Label>   
                <table width="100%" border="0" cellspacing="5">
                    <tr>
                        <td>
                            <b>Relationer</b><br />
                            <asp:ListBox ID="ListRelations" runat="server" Width="220px" Height="260px"></asp:ListBox>
                        </td>
                        <td>
                            <asp:Button ID="Add" runat="server" Text="<<" onclick="Add_Click" Width="100px" />
                            <br />
                            <asp:Button ID="Remove" runat="server" Text=">>" onclick="Remove_Click" Width="100px" />
                        </td>
                        <td>
                            <b>Spil</b><br />
                            <asp:ListBox ID="ListGames" runat="server" Width="220px" Height="260px"></asp:ListBox>
                        </td> 
                    </tr>
                    <tr>
                        <td colspan="3">
                            Skal screenshots vises i nyheden: <asp:CheckBox ID="ChkScreens" runat="server" />
                        </td>
                    </tr>
                </table> 
                </ContentTemplate>          
                </asp:UpdatePanel>
            </ContentTemplate>
        </cc1:TabPanel>
        <cc1:TabPanel ID="TabUpload" runat="server" HeaderText="Nyheds Billed">
            <ContentTemplate>
                <b>Vælg Billed - max 200px bred</b><br /><br />
                <asp:FileUpload ID="FileUploadNews" runat="server" />
            </ContentTemplate>
        </cc1:TabPanel>
        <cc1:TabPanel ID="TabFormat" runat="server" HeaderText="Formater">
            <ContentTemplate>
                <asp:CheckBoxList ID="ListFormat" runat="server">
                    <asp:ListItem Text="Xbox 360" Value="1"></asp:ListItem>
                    <asp:ListItem Text="PC" Value="2"></asp:ListItem>
                    <asp:ListItem Text="Playstation 3" Value="3"></asp:ListItem>
                    <asp:ListItem Text="Nintendo Wii" Value="4"></asp:ListItem>
                </asp:CheckBoxList>
            </ContentTemplate>
        </cc1:TabPanel>        
    </cc1:TabContainer>
</asp:Content>

